package com.blacksheep.mtm.dao;

import com.blacksheep.mtm.pojo.manager.TbOrderShipping;
import com.blacksheep.mtm.pojo.manager.TbOrderShippingExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface TbOrderShippingMapper {
    long countByExample(TbOrderShippingExample example);

    int deleteByExample(TbOrderShippingExample example);

    int deleteByPrimaryKey(String shippingId);

    int insert(TbOrderShipping record);

    int insertSelective(TbOrderShipping record);

    List<TbOrderShipping> selectByExample(TbOrderShippingExample example);

    TbOrderShipping selectByPrimaryKey(String shippingId);

    int updateByExampleSelective(@Param("record") TbOrderShipping record, @Param("example") TbOrderShippingExample example);

    int updateByExample(@Param("record") TbOrderShipping record, @Param("example") TbOrderShippingExample example);

    int updateByPrimaryKeySelective(TbOrderShipping record);

    int updateByPrimaryKey(TbOrderShipping record);


    int updateDeliveryidByPrimaryKey(@Param("deliveryId") Long deliveryId,@Param("shippingId") String shippingId);

    List<TbOrderShipping> selectList(@Param("search") String search, @Param("state") int[] state, @Param("minDate") String minDate,
                                   @Param("maxDate") String maxDate, @Param("orderCol") String orderCol,
                                   @Param("orderDir") String orderDir);
}